package com.speech.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class UserInfo implements Parcelable {
    /**
     * total_property_value : 5000
     * user_portrait : /static/image/default.png
     * nick_name : 神秘人
     * todays_total_mineral : 0.1
     * total_mineral_everyday : 4000000
     */

    private int total_property_value;
    private String user_portrait;
    private String nick_name;
    private double todays_total_mineral;
    private int total_mineral_everyday;

    public int getTotal_property_value() {
        return total_property_value;
    }

    public void setTotal_property_value(int total_property_value) {
        this.total_property_value = total_property_value;
    }

    public String getUser_portrait() {
        return user_portrait;
    }

    public void setUser_portrait(String user_portrait) {
        this.user_portrait = user_portrait;
    }

    public String getNick_name() {
        return nick_name;
    }

    public void setNick_name(String nick_name) {
        this.nick_name = nick_name;
    }

    public double getTodays_total_mineral() {
        return todays_total_mineral;
    }

    public void setTodays_total_mineral(double todays_total_mineral) {
        this.todays_total_mineral = todays_total_mineral;
    }

    public int getTotal_mineral_everyday() {
        return total_mineral_everyday;
    }

    public void setTotal_mineral_everyday(int total_mineral_everyday) {
        this.total_mineral_everyday = total_mineral_everyday;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.total_property_value);
        dest.writeString(this.user_portrait);
        dest.writeString(this.nick_name);
        dest.writeDouble(this.todays_total_mineral);
        dest.writeInt(this.total_mineral_everyday);
    }

    public UserInfo() {
    }

    protected UserInfo(Parcel in) {
        this.total_property_value = in.readInt();
        this.user_portrait = in.readString();
        this.nick_name = in.readString();
        this.todays_total_mineral = in.readDouble();
        this.total_mineral_everyday = in.readInt();
    }

    public static final Parcelable.Creator<UserInfo> CREATOR = new Parcelable.Creator<UserInfo>() {
        @Override
        public UserInfo createFromParcel(Parcel source) {
            return new UserInfo(source);
        }

        @Override
        public UserInfo[] newArray(int size) {
            return new UserInfo[size];
        }
    };
}
